package com.terrynoya.fight.combat
{
	import com.terrynoya.fight.emuns.ProjectileDataType;

	public class ProjectileInfo
	{
		private var _projecTileId:int;
		private var _dataType:int;
		private var _time:int;
		
		public function ProjectileInfo()
		{
			this._dataType = ProjectileDataType.None;
		}
		
		public function get time():int
		{
			return _time;
		}

		public function set time(value:int):void
		{
			_time = value;
		}

		public function get dataType():int
		{
			return _dataType;
		}

		public function set dataType(value:int):void
		{
			_dataType = value;
		}

		public function get projecTileId():int
		{
			return _projecTileId;
		}

		public function set projecTileId(value:int):void
		{
			_projecTileId = value;
		}

		public function set(projecTileId:int,type:int):void
		{
			this._projecTileId = projecTileId;
			this._dataType = type;
			this._time = 0;
		}
		
		public function update():void
		{
			if(this._dataType == ProjectileDataType.None)
			{
				return;
			}
			this._time ++;
		}
	}
}